package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

// Spring配置类
@Configuration
//组件扫描
@ComponentScan({"com.itheima.service"})

//加载properties文件
@PropertySource("classpath:jdbc.properties")
//导入jdbc配置类
@Import({JdbcConfig.class,MyBatisConfig.class})

//启动声明式事务
@EnableTransactionManagement
public class SpringConfig {

}
